/*
7. Fix the program from Exercise 6.
*/

/*
6. Write a program that produces a memory leak.
*/

#include <iostream.h>

int main() {
	int * pOne = new int;
	int * pTwo = new int;
	*pOne = 20;
	*pTwo = 30;
	int * pThree = pOne;
	pOne = pTwo;
	cout << *pThree << endl;
	cout << *pTwo << endl;
	cout << *pOne << endl;
	return 0;
}
